package com.xiaomaoguai.webkit.model;

public enum MessageState {

	FAILURE(0, false), SUCCESS(1, true), EXCEPTION(2, false);

	private int index;

	private boolean success;

	private MessageState(int index, boolean success) {
		this.index = index;
		this.success = success;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

}
